package cn.com.lyj6851.modules.edu.vo;

import cn.com.lyj6851.modules.edu.domain.EduSubject;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Administrator
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EduSubjectVo {

    public EduSubjectVo(EduSubject eduSubject) {
        this.id = eduSubject.getId();
        this.title = eduSubject.getTitle();
    }

    private String id;

    @JsonProperty(value = "name")
    private String title;
}
